package com.translate.web.param;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import com.constant.ValidateCondtionAndMessage;
import com.translate.web.param.contract.IUpdateEmailParam;

public class UpdateEmailParam implements IUpdateEmailParam {

	@NotNull
	@Pattern(regexp = ValidateCondtionAndMessage.EMAIL_PATTERN, message =ValidateCondtionAndMessage.EMAIL_PATTERN_MSG)
	private String email;
	
	@NotNull
	@Pattern(regexp = "\\d+", message = "请输入数字")
	private String code;
	
	private int userId;

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}
}